/**
 * 
 */
package com.pactera.android.activity;

import com.pactera.android.R;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

/**
 * @author David Zheng
 *
 */
public class AboutActivity extends Activity {
	
	TextView headerText;
	
	Button backBtn;
	
	Button companyCallBtn;

	/* (non-Javadoc)
	 * @see android.app.Activity#onCreate(android.os.Bundle)
	 */
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		this.setContentView(R.layout.about_activity);
		initHeader();
	}
	
	private void initHeader() {
		headerText = (TextView)findViewById(R.id.topTextId);
		headerText.setText(R.string.about);
		backBtn = (Button)findViewById(R.id.backBtnId);
		backBtn.setVisibility(0);
		backBtn.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				finish();			
			}			
		});
		
		companyCallBtn = (Button)findViewById(R.id.companyCallBtnId);
		companyCallBtn.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				Intent callIntent = new Intent(Intent.ACTION_CALL);
				callIntent.setData(Uri.parse("tel:+61451960907"));
				startActivity(callIntent);
				
			}
			
		});
	}
	
	

}
